package com.huike.contract.service;

import com.huike.contract.domain.TbContract;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huike.contract.domain.dto.TbContractDTO;

import java.util.List;

/**
* @author 93238
* @description 针对表【tb_contract(合同)】的数据库操作Service
* @createDate 2023-10-12 06:42:55
*/
public interface TbContractService extends IService<TbContract> {

    /**
     * 合同列表
     * @param tbContractDTO
     * @return
     */
    List<TbContractDTO> selectTbContract(TbContractDTO tbContractDTO);

    /**
     * 商机转合同
     * @param id
     * @param tbContract
     * @return
     */
    int changeContract(Long id, TbContract tbContract);

    /**
     * 新增合同
     * @param tbContract
     * @return
     */
    int add(TbContract tbContract);
}
